
//- This Source Code Form is subject to the terms of the Mozilla Public
//- License, v. 2.0. If a copy of the MPL was not distributed with this
//- file, You can obtain one at http://mozilla.org/MPL/2.0/.
//-
//- Copyright (c) 2021-present Kaleidos Ventures SL

section.duty-custom-fields(ng-show="ctrl.customAttributes.length")
    .custom-fields-header
        span(translate="COMMON.CUSTOM_ATTRIBUTES.CUSTOM_FIELDS")
        a.collapse(
            href=""
            ng-class="{'open': !collapsed}"
            ng-click="toggleCollapse()"
        )
            tg-svg(svg-icon="icon-arrow-down")

    .custom-fields-body(
        ng-show="!collapsed"
    )
        .custom-attribute(
            ng-repeat="attr in ctrl.customAttributes"
            tg-custom-attribute-value="ctrl.getAttributeValue(attr)"
            required-edition-perm!="<%- requiredEditionPerm %>"
        )
